package cn.magic.handler;

import cn.magic.User;
import com.alibaba.csp.sentinel.slots.block.BlockException;
import org.springframework.web.bind.annotation.PathVariable;

public class UserBlockHandler {

    public static User getUserByIdBlockHandler(@PathVariable Long id, BlockException e){
        return User.builder().id(-1l).name("降级了").into("熔断了").build();
    }
}
